package com.it.bigdata.DownLoad.impl;

import com.it.bigdata.DownLoad.DownLoader;
import com.it.bigdata.Util.HttpUtil;

public class BaiDuTieBaDownLoad implements DownLoader {
    long currentPageNum  = 0L;
    public String download(String url) {
        /**
         * 下载页面时在测试环境休眠一秒
         */

        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        String html = HttpUtil.simpleDownload(url);
        if (html!=null){
            //下载页面成功
            //下一页

            return html;
        }
        return null;
    }
}
